/** ###################################################################
**     Filename  : speed_control.h
**     Project   : ccd2
**     Processor : MCF52255CAF80
**     Version   : Driver 01.00
**     Compiler  : CodeWarrior MCF C Compiler
**     Arthor	 : Yumi Chan, Cindy Yu, Ryan Cheung
**     Abstract  :
**         
**     Settings  :
**     Contents  :
**         No public methods
**
** ###################################################################*/

#ifndef __SPEED_CONTROL_H_
#define __SPEED_CONTROL_H_

/* Include */
#include "support_common.h"
#include "motor_PWM.h"


/* Private Define */
#define SPEED_CHECK_FREQ	25


/* Private typedef */
typedef struct MOTOR 
{
  int i;
} MOTOR;



/* Variables */
extern MOTOR motor;

extern uint32 encoder_counter;
extern short motor_duty;
extern int carSpeed;
extern int distance;


/* Private Method Declaration */
void speedControl();

#endif